package com.itheima.health.servcie.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.health.mapper.UserMapper;
import com.itheima.pojo.User;
import com.itheima.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = HelloService.class)
@Transactional
public class HelloServiceImpl implements HelloService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User sayHello() {
        return userMapper.selectByUsername("admin");
    }
}
